import 'package:flutter/material.dart';
import '../../router/router.dart';

class Index extends StatelessWidget {
  Index();

  @override
  Widget build(BuildContext context) {
    return Material(
        child: Container(
      decoration: BoxDecoration(color: Color(0xFF1D1D1D)),
      child: Column(children: [
        Center(
          child: InkWell(
            child: Text(
              '首页',
              style: TextStyle(fontSize: 100, color: Colors.white),
            ),
            onTap: () {
              RouterConfig.navigater(context, path: '/login', type: 'relaunch');
            },
          ),
        )
      ]),
    ));
  }
}
